package org.dromara.finance.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.finance.domain.Customer;
import org.dromara.finance.domain.vo.CustomerVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 客户信息Mapper接口
 *
 * @author xxy
 * @date 2025-08-15
 */
public interface CustomerMapper extends BaseMapperPlus<Customer, CustomerVo> {
    Page<CustomerVo> selectPageList(Page<?> page, @Param(Constants.WRAPPER) Wrapper<Customer> queryWrapper);

    List<CustomerVo> selectExportList(@Param(Constants.WRAPPER) Wrapper<Customer> queryWrapper);

    int countEnabledByCategoryId(Long categoryId);
}
